﻿<Window x:Class="P2.Cuberry.Modules.SimpleAccounting.FiTransaction.FiTransactionsDetailsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:basec="clr-namespace:P2.Cuberry.Framework.Helper;assembly=P2.Cuberry.Framework.Helper"    
    
        
        Icon="/P2.Cuberry;component/Images/CuberryIcon32.ico"            
        Title="Peacequare Cuberry" Width="880" Height="570" 
        Background="{DynamicResource P2BackgroundBrush}" 
        Loaded="Window_Loaded"
        Closing="Window_Closing"
        >

    <Window.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/CuberryDataGrid.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Grid.Resources>            
            <Image x:Key="BookIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/book16.gif" />
            <Image x:Key="CancelTransactionIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/cancelTransaction16.gif" />
            <Image x:Key="UnbookIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/cancelTransaction16.gif" />
            <Image x:Key="ReOpenIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/ReOpen2.png" />
        </Grid.Resources>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition Height="35" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="35" />
        </Grid.RowDefinitions>

        <!-- Row 0 Start -->
        <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Content="{Translate DialogHeaderFiTransactionDetail}" Style="{StaticResource P2DetailViewHeaderTextStyle}" />


        <Separator Margin="0,0,0,0" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Bottom" Height="0"/>
        <!-- Row 0 End -->

        <!-- Row 1: Menu Start -->
        <Border  Grid.Row="1" Grid.Column="0"  Style="{StaticResource P2MenuBorderStyle}">
            <Grid>
            <Menu Grid.Row="1" x:Name="menuMain" Style="{StaticResource P2MenuStyle}" >
                <MenuItem x:Name="SaveBtn"  Margin="2,1,0,2" InputGestureText="Ctrl+S" Header="{Translate SaveBtn}" Command="{Binding FiTransactionSaveCommand}" Style="{StaticResource P2MenuItemStyleSave}" />
                <MenuItem x:Name="CloseBtn" Margin="2,1,0,2" InputGestureText="Ctrl+X" Header="{Translate SaveAndCloseBtn}" Command="{Binding FiTransactionCloseCommand}" Style="{StaticResource P2MenuItemStyleSaveAndClose}"/>

                <MenuItem x:Name="BookBtn"  Margin="2,1,0,2" Command="{Binding FiTransactionBookCommand}"  Header="{Translate BookBtn}" Icon="{StaticResource BookIcon}" Style="{StaticResource P2MenuItemStyle}"/>
                <MenuItem x:Name="CancelTransactionBtn"  Margin="2,1,0,2" Command="{Binding FiTransactionCancelCommand}" Header="{Translate CancelTransactionBtn}" Icon="{StaticResource CancelTransactionIcon}" Style="{StaticResource P2MenuItemStyle}"/>
                <MenuItem x:Name="UnbookBtn"  Margin="2,1,0,2" Command="{Binding FiTransactionUnbookCommand}"  Header="{Translate UnbookBtn}" Icon="{StaticResource UnbookIcon}" Style="{StaticResource P2MenuItemStyle}"/>
                <MenuItem x:Name="ReOpenBtn"  Margin="2,1,0,2" Command="{Binding ReOpenCommand}"  Header="{Translate ReOpenBtn}" Icon="{StaticResource ReOpenIcon}" Style="{StaticResource P2MenuItemStyle}"/>

                    <MenuItem x:Name="PrintBtn" Margin="2,1,0,2" Header="{Translate PrintBtn}" Command="{Binding FiTransactionPrintCommand}"  Style="{StaticResource P2MenuItemStylePrint}"/>
                
            </Menu>
                <Menu Grid.Row="1" HorizontalAlignment="Right" x:Name="menuMainRight" Style="{StaticResource P2MenuStyle}" >
                    <MenuItem x:Name="HistoryBtn" Command="{Binding HistoryCommand}"  Style="{StaticResource P2MenuItemStyleHistory}"/>
                    <MenuItem x:Name="InfoBtn" Command="{Binding InfoCommand}"  Style="{StaticResource P2MenuItemStyleInfo}"/>
                </Menu>
            </Grid>
        </Border>
        <!-- Row 1 End -->
 
        <!-- Row 2: All Fields -->
        <Border  Grid.Row="2" Grid.Column="0"  Style="{StaticResource P2ContentBorderStyle}">
            <Grid Grid.Row="2" Grid.Column="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="130"/>

                </Grid.ColumnDefinitions>

                <Grid.RowDefinitions>
                    <RowDefinition Height="55"/>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="60"/>
                </Grid.RowDefinitions>

                <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" Margin="5,3,0,0" Name="BookingDescriptionL" Width="120" Height="28" VerticalAlignment="Top" Content="{Translate BookingDescriptionHeaderL}"></Label>
                <TextBox  Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"  Margin="5,24,5,0" Name="BookingDescription" Height="23" Text="{Binding BookingDescription, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Stretch"  VerticalAlignment="Top" Style="{StaticResource P2TextBoxStyle}" 
                          IsReadOnly="{Binding NameReadOnly}"
                          />



                <Label  Grid.Row="1" Grid.Column="1"  Height="28" Margin="3,5,5,0" Name="DocumentNoL" VerticalAlignment="Top" Content="{Translate DocumentNoL}" />
                <TextBox  Grid.Row="1" Grid.Column="1" Margin="3,28,5,0" Name="DocumentNo" Text="{Binding DocumentNo , ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Style="{StaticResource P2TextBoxStyle}" Height="23" VerticalAlignment="Top" 
                          IsReadOnly="{Binding NameReadOnly}"  />

                <Label  Grid.Row="1" Grid.Column="1" Margin="3,51,5,0" Name="DocumentDateL" Height="31.5" VerticalAlignment="Top" Content="{Translate DocumentDateL}"></Label>
                <DatePicker  Grid.Row="1" Grid.Column="1" Margin="3,74,5,0" Name="DocumentDate" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" SelectedDate="{Binding DocumentDate, Mode=TwoWay}" Height="23" VerticalAlignment="Top" 
                                IsEnabled="{Binding NameEnabled}"
                                />


                <Label  Grid.Row="1" Grid.Column="1" Margin="3,120,5,0" Name="BookingIDL" Height="31.5" VerticalAlignment="Top" Content="{Translate BookingIDL}" />
                <TextBox  Grid.Row="1" Grid.Column="1" Margin="3,143,5,0" Name="BookingID" Text="{Binding BookingID , ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Style="{StaticResource P2TextBoxStyle}" Height="23" VerticalAlignment="Top" IsReadOnly="True" />

                <Label  Grid.Row="1" Grid.Column="1"  Margin="3,166,5,0" Name="BookingDateL" Height="31.5" VerticalAlignment="Top" Content="{Translate BookingDateL}" />
                <DatePicker  Grid.Row="1" Grid.Column="1" Margin="3,189,5,0" Name="BookingDate" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" SelectedDate="{Binding BookingDate, Mode=TwoWay , ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"  Height="23" VerticalAlignment="Top" 
                                IsEnabled="{Binding NameEnabled}"/>
                                

                <Label Grid.Row="1" Grid.Column="1" Margin="3,235,5,0" Name="FiTransactionFiscalYearL" Content="{Translate FiscalYearIDL}" Height="28" VerticalAlignment="Top"></Label>
                <ComboBox  Grid.Row="1" Grid.Column="1" Margin="3,258,5,0" Name="FiscalYear" ItemsSource="{Binding FiscalYears}"
                          SelectedValue="{Binding FiscalYearID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Style="{StaticResource P2ComboBoxStyle}" SelectedValuePath="FiscalYearID" DisplayMemberPath="FiscalYearName" 
                           VerticalAlignment="Top"  IsEnabled="False"  />


                <Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" Margin="5,0,0,43" Name="NoteL" Content="{Translate NoteL}" VerticalAlignment="Bottom" Width="120" Height="23" />
                <TextBox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,0,5,5" Name="Note" Height="43" HorizontalAlignment="Stretch"  VerticalAlignment="Bottom" VerticalScrollBarVisibility="Auto" Style="{StaticResource P2TextBoxStyle}"
                         Text="{Binding Note , ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"
                         IsReadOnly="{Binding NameReadOnly}"
                         />

                <TabControl Grid.Row="1" Grid.RowSpan="2" Margin="5,5,0,65" Name="tabControl1">
                    
                    <TabItem Header="{Translate FiTransactionItemTabL}" Name="FiTransactionItemTab" MouseDoubleClick="FiTransactionItemTab_MouseDoubleClick">
                <Grid Grid.Row="1" Grid.Column="0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>


                    <Border Grid.Row="0" Margin="5,0,5,5"   VerticalAlignment="Stretch" BorderThickness="1" CornerRadius="2,2,2,2" BorderBrush="#FF6893CF">
                        <Grid ShowGridLines="False">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="20"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="34"/>
                            </Grid.RowDefinitions>

                            <Label Grid.Row="0" Name="DebitL" Width="120" Height="28"  VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Content="{Translate DebitL}" FontWeight="Bold" />

                            <DataGrid Grid.Row="1"  Margin="3,0,3,0" 
                                         Name="FiTransactionItemDebitList" 
                                         ItemsSource="{Binding DebitTransactionItems}"                                         
                                         MouseDoubleClick="FiTransactionItemDebitList_MouseDoubleClick"                                         
                                         Style="{DynamicResource CuberryDataGridStyle}"
                                         VerticalAlignment="Top">
                                <DataGrid.Columns>
                                    <DataGridTextColumn   Header="{Translate FiAccountNoL}" IsReadOnly="True"  Binding="{Binding FiAccountNo}" 
                                                              Width="100" MinWidth="40" />
                                    <DataGridTextColumn   Header="{Translate FiAccountNameL}" IsReadOnly="True"  Binding="{Binding FiAccountNameCur}" 
                                                              Width="200" MinWidth="40" />
                                    <DataGridTextColumn Header="{Translate BookingDescriptionL}" IsReadOnly="True" Binding="{Binding Path=BookingDescription}" Width="200" MinWidth="40" />
                                    <DataGridTextColumn Header="{Translate ValueDateL}" Binding="{Binding Path=ValueDate, StringFormat=dd/MM/yyyy}"  CellStyle="{StaticResource CenterAlignedCellStyle}" MinWidth="70" Width="70"/>
                                    <DataGridTextColumn Header="{Translate FiAccountAmountDebitL}" IsReadOnly="True" Binding="{Binding Path=FiAccountAmountDebit, StringFormat=N2}"  Width="*" CellStyle="{StaticResource AlwaysRightAlignedCellStyle}"/>

                                </DataGrid.Columns>
                            </DataGrid>
                            <Button Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Bottom"  Margin="3,0,0,3" Name="AddDebitBtn"  Command="{Binding FiTransactionAddDebitCommand}"  Height="23" Width="23">
                                <Image  Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/Add.png"></Image>
                            </Button>
                            <Button Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="28,0,0,3" Name="DeleteDebitBtn"  Command="{Binding FiTransactionDeleteDebitCommand}" Height="23"  Width="23">
                                <Image  Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/Remove.ico"></Image>
                            </Button>
                            
                            <Button Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Bottom"  Margin="52,0,0,3" Name="SwitchDebitBtn"   Height="23" Width="23" Click="SwitchDebitBtn_Click">
                                <Image  Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/MoveDown.png"></Image>
                            </Button>
                            
                            <TextBox Grid.Row="2"  HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,3,3" Name="DebitTotal" Width="120" Text="{Binding DebitTransactionSum, StringFormat=N2, Mode=OneWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" IsReadOnly="True" Style="{StaticResource P2TextBoxStyle}" Height="23" HorizontalContentAlignment="Right" FlowDirection="LeftToRight"/>
                        </Grid>
                    </Border>



                    <Border Grid.Row="1" Margin="5,0,5,5"   VerticalAlignment="Stretch" BorderThickness="1" CornerRadius="2,2,2,2" BorderBrush="#FF6893CF">
                        <Grid ShowGridLines="False">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="20"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="34"/>
                            </Grid.RowDefinitions>

                            <Label Grid.Row="0" Name="CreditL" Width="120" Height="28" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Content="{Translate CreditL}" FontWeight="Bold" />

                            <DataGrid Grid.Row="1" Margin="3,0,3,0" 
                                         Name="FiTransactionItemCreditList" 
                                         ItemsSource="{Binding CreditTransactionItems}"                                          
                                         MouseDoubleClick="FiTransactionItemCreditList_MouseDoubleClick"                                          
                                         Style="{DynamicResource CuberryDataGridStyle}"
                                         VerticalAlignment="Top" >
                                <DataGrid.Columns>
    
                                    
                                    <DataGridTextColumn   Header="{Translate FiAccountNoL}" IsReadOnly="True"  Binding="{Binding FiAccountNo}" 
                                                              Width="100" MinWidth="40" />

                                    <DataGridTextColumn   Header="{Translate FiAccountNameL}" IsReadOnly="True"  Binding="{Binding FiAccountNameCur}" 
                                                              Width="200" MinWidth="40" />

                                    <DataGridTextColumn Header="{Translate BookingDescriptionL}" Binding="{Binding Path=BookingDescription}" IsReadOnly="True" MinWidth="40" Width="200" />
                                    <DataGridTextColumn Header="{Translate ValueDateL}" Binding="{Binding Path=ValueDate, StringFormat=dd/MM/yyyy}"  CellStyle="{StaticResource CenterAlignedCellStyle}" MinWidth="70" Width="70"/>                                   
                                    <DataGridTextColumn Header="{Translate FiAccountAmountCreditL}" Binding="{Binding Path=FiAccountAmountCredit, StringFormat=N2}" IsReadOnly="True"   Width="*" CellStyle="{StaticResource AlwaysRightAlignedCellStyle}"/>
                                </DataGrid.Columns>
                            </DataGrid>

                            <Button Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="3,0,0,3" Name="AddCreditBtn"  Command="{Binding FiTransactionAddCreditCommand}" Height="23"  Width="23">
                                <Image  Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/Add.png"></Image>
                            </Button>
                            <Button Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="28,0,0,3" Name="DeleteCreditBtn"  Command="{Binding FiTransactionDeleteCreditCommand}"  Height="23" Width="23">
                                <Image  Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/Remove.ico"></Image>
                            </Button>
                            
                            <Button Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Bottom"  Margin="52,0,0,3" Name="SwitchCreditBtn"   Height="23" Width="23" Click="SwitchCreditBtn_Click">
                                <Image  Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/MoveUp.png"></Image>
                            </Button>
                            
                            <TextBox Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,3,3" Name="CreditTotal"  Width="120" Text="{Binding CreditTransactionSum, StringFormat=N2, Mode=OneWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" IsReadOnly="True" Style="{StaticResource P2TextBoxStyle}" HorizontalContentAlignment="Right" FlowDirection="LeftToRight" Height="23"/>
                            
                        </Grid>
                    </Border>
                </Grid>                        
                    </TabItem>
                    <TabItem Header="{Translate FiChequeTabL}" Name="FiChequeTab">
                        <Grid Grid.Row="1" Grid.Column="0">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>                                
                            </Grid.RowDefinitions>


                            <Border Grid.Row="0" Margin="5,0,5,5" VerticalAlignment="Stretch" BorderThickness="1" CornerRadius="2,2,2,2" BorderBrush="#FF6893CF">
                                <Grid ShowGridLines="False">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="57" />
                                        <ColumnDefinition Width="630" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="20"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>

                                    <Label Name="ChequesL" Width="120" Height="28"  VerticalAlignment="Top" HorizontalAlignment="Left" Content="{Translate ChequesL}" FontWeight="Bold" Grid.ColumnSpan="2" Grid.RowSpan="2" />

                                    <DataGrid Grid.Row="1"  Margin="3,0" 
                                         Name="FiChequeList" 
                                         ItemsSource="{Binding FiCheques}"                                         
                                         MouseDoubleClick="FiChequeList_MouseDoubleClick"                          
                                         Style="{DynamicResource CuberryDataGridStyle}"
                                         VerticalAlignment="Top" Grid.ColumnSpan="2">
                                        <DataGrid.Columns>
                                            <DataGridTextColumn Header="{Translate ChequeNoL}" Binding="{Binding Path=ChequeNo}" MinWidth="40" Width="100" CellStyle="{StaticResource AlwaysRightAlignedCellStyle}" />
                                            <DataGridTextColumn Header="{Translate BankL}" Binding="{Binding Path=Bank}" MinWidth="40" Width="100" />
                                            <DataGridTextColumn Header="{Translate MyBankL}" Binding="{Binding Path=MyBank}" MinWidth="40" Width="100" />
                                            <DataGridTextColumn Header="{Translate ValueDateL}" Binding="{Binding Path=ValueDate, StringFormat=dd/MM/yyyy}" CellStyle="{StaticResource CenterAlignedCellStyle}" MinWidth="70" Width="70" />
                                            <DataGridTextColumn Header="{Translate AmountL}" Binding="{Binding Path=Amount, StringFormat=N2}" MinWidth="40" Width="100" CellStyle="{StaticResource AlwaysRightAlignedCellStyle}"/>

                                            <DataGridTextColumn Header="{Translate CurrencyIDL}" IsReadOnly="True" Binding="{Binding Path=XConfigCurrencyCur}" 
                                                                MinWidth="40" Width="100" />
                                            <DataGridTextColumn Header="{Translate StatusNameL}" IsReadOnly="True" Binding="{Binding Path=StatusName, Mode=OneWay}" 
                                                                MinWidth="40" Width="*"  /> 
                                        </DataGrid.Columns>
                                    </DataGrid>
                                    <!--<MenuItem  Grid.Row="2" x:Name="AddChequeBtn" HorizontalAlignment="Left" VerticalAlignment="Bottom"  Margin="40,0,0,3"  Header="{Translate AddChequeBtn}" Icon="{StaticResource BookIcon}" Style="{StaticResource P2MenuItemStyle}"/>-->
                                    <Button Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Bottom"  Margin="3,0,0,3" Name="AddChequeBtn" Command="{Binding AddChequeCommand}"    Height="23" Width="23">
                                        <Image  Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/Add.png"></Image>
                                    </Button>
                                    <Button Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="28,0,0,3" Name="FindChequeBtn"  Command="{Binding FindChequeCommand}" Height="23"  Width="23">
                                        <Image  Source="/P2.Cuberry.Modules.SimpleAccounting.FiTransaction;component/Images/Find.png"></Image>
                                    </Button>
                                    
                                </Grid>
                            </Border>
                        </Grid>
                    </TabItem>
                </TabControl>
            </Grid>
        </Border>

        <!-- Row 2: End -->


        <!-- Row 3: Bottom: Status Bar Start -->
        <Border Grid.Row="3" Grid.Column="0" Style="{StaticResource P2StatusStripBorderStyle}" >
            <Grid Grid.Row="3" Grid.Column="0" Style="{StaticResource P2StatusStripGridStyle}">
                <basec:P2StatusStrip x:Name="StatusStrip" MessageStack2="{Binding MessageStack}" Grid.Column="0" Grid.Row="3" Height="Auto" Width="Auto" Background="White" HorizontalAlignment="Left" ContentStringFormat=""></basec:P2StatusStrip>
                <TextBox Name="Status" Grid.Column="0" Grid.Row="3" Height="Auto" Width="Auto" Background="White" HorizontalAlignment="Right" Text="{Binding StatusName, Mode=OneWay}" IsReadOnly="True" BorderBrush="Transparent" />
            </Grid>
        </Border>

        <!-- Row 3: End -->
    </Grid>
</Window>
